package com.itcast.Extands;

public  class Tiger extends Animal {
    @Override
    public void eat() {
        System.out.println("年龄为"+getAge()+"的"+getNumOflege()+"条腿的老虎在吃羊");
    }

    public Tiger(int age, int numOflege) {
        super(age, numOflege);
    }

    public Tiger() {
    }
}
